using System;
using digit.Core;
using System.Data;

namespace SMS.SmManager
{
    public class ProcessLogsInfo
    {
        #region CONSTRUCTORS
        public ProcessLogsInfo()
        {

            this.m_logID = Util.NULL_INT;
            this.m_errMsg = Util.NULL_STRING;
        }
        public ProcessLogsInfo(int logID, string errMsg)
        {

            this.m_logID = logID;
            this.m_errMsg = errMsg;
        }
        public ProcessLogsInfo(DataRow dRow)
        {

            this.m_logID = (int)Util.ReplaceDBNullTo(dRow["logID"], Util.NULL_INT);
            this.m_errMsg = Util.ReplaceDBNullTo(dRow["errMsg"], Util.NULL_STRING).ToString();
        }
        #endregion

        #region ATTRIBUTES
        private int m_logID;
        private string m_errMsg;
        #endregion

        #region PROPERTIES
        public int LogID
        {
            get
            {
                return this.m_logID;
            }
            set
            {
                this.m_logID = value;
            }
        }

        public string ErrMsg
        {
            get
            {
                return this.m_errMsg;
            }
            set
            {
                this.m_errMsg = value;
            }
        }

        #endregion

    }
}